import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

/**
 * @author arthur
 * 
 */
public class ConnextionAvecTuring {
	public static void main(final String[] args) throws MalformedURLException,
			RemoteException, NotBoundException {
		System.out.println("Début lookup");
		final Object o = Naming.lookup("//turing.u-strasbg.fr:1238/connect");
		System.out.println("Fin lookup");

		if (o == null) {
			System.out.println("L'objet est null");
		} else {
			System.out.println("L'objet n'est pas null");
		}
	}
}
